$("#adtvmout").click(function () {
    window.location.href = '/configure/apparel';
});

$("#adtvmadd").click(function () {
    var data = $("#adtvminfo").serialize();
    var id = $("input[name='id']").val();
    var udskca_name = $(".udskca_name").val();//套餐图片
    if(udskca_name==''){
        dshow("狗狗的穿戴不能为空");
        return false;
    }
    $.ajax({
        url: '/configure/saveApparel',
        type: 'POST',
        data: data,
        dataType: 'JSON',
        cache: false,
        success: function (json) {
            if (json.code == 2000) {
                if (id != '') {
                    history.back(-1);
                } else {
                    window.location.href = '/configure/apparel'
                }
            } else {
                dshow(json.message);
            }
        }
    });
});